package kgc.LiuMang.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import kgc.LiuMang.dao.OrderMapper;
import kgc.LiuMang.entity.Orderproduct;
import kgc.LiuMang.entity.Ordertable;
import kgc.LiuMang.service.OrdertableService;

@Service
public class OrdertableServiceImpl implements OrdertableService {

	@Autowired
	private OrderMapper orderMapper;
	
	@Override
	public List<Ordertable> getOrderLimit(Integer pageNum, Integer pageSize, Integer ouserid, Integer ofid,
			Integer ostates) {
		// TODO Auto-generated method stub
		return orderMapper.getOrderLimit(pageNum, pageSize, ouserid, ofid, ostates);
	}

	@Override
	public int addOrder(Ordertable order) {
		// TODO Auto-generated method stub
		return orderMapper.addOrder(order);
	}

	@Override
	public int addOrderPro(Orderproduct op) {
		// TODO Auto-generated method stub
		return orderMapper.addOrderPro(op);
	}
	
	
	@Override
	public int updateUpFTurn(Integer fid, Float fturnover) {
		// TODO Auto-generated method stub
		return orderMapper.updateUpFTurn(fid, fturnover);
	}
	
	@Override
	public int updateDownFTurn(Integer fid, Float fturnover) {
		// TODO Auto-generated method stub
		return orderMapper.updateDownFTurn(fid, fturnover);
	}
	
	@Override
	public int updateOrderStates(Integer oid, Integer ostates) {
		// TODO Auto-generated method stub
		return orderMapper.updateOrderStates(oid, ostates);
	}

	
	
	@Override
	public int deleteOrderById(Integer oid) {
		// TODO Auto-generated method stub
		return orderMapper.deleteOrderById(oid);
	}

	

	

	

}
